package cn.lingyangwl.agile.msg.push.model.rqrs.receiver;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import cn.lingyangwl.agile.msg.push.api.constatnts.NoticeCodeEnum;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 接收人验证请求
 * @author shenguangyang
 */
@Data
public class ReceiverVerifyReq {
    /**
     * 接收人id
     */
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private Long receiverId;

    /**
     * 消息推送的任务编码
     * @see NoticeCodeEnum
     */
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String taskCode;

    /**
     * 手机号/邮箱验证码
     */
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String verifyCode;
}
